package com.vhall.component.entity.goods.goods;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021/10/26
 */
@Data
public class GoodsApiSendMessageReqVO implements Serializable {

    private static final long serialVersionUID = 1400708291213005619L;

    /**
     * 房间id
     */
    @JsonProperty(value = "room_id")
    @NotBlank(message = "room_id参数不允许为空！")
    @ParamName("room_id")
    private String roomId;

    /**
     * 商品绑定id
     */
    @JsonProperty(value = "bcg_id")
    @NotNull(message = "bcg_id参数不允许为空！")
    @ParamName("bcg_id")
    private Integer bcgId;

    /**
     * 推屏时间，单位秒
     */
    @JsonProperty(value = "screen_second")
    @NotNull(message = "screen_second参数不允许为空！")
    @ParamName("screen_second")
    @Min(value = 1, message = "推屏时间不允许小于1秒！")
    private Integer screenSecond;

}
